<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>钩子函数</title>
</head>
<body>
<div id="aa">
    {{hello}}
</div>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: "#aa",
        data: {
            hello: '' // hello初始化为空
        },
        created() {
            this.hello = "你好我出生了";
        }
    })
</script>
</body>
</html>